package com.colin.app.activity.senior.notification;

import android.view.View;

import com.colin.app.R;
import com.colin.app.activity.senior.SeniorContract;
import com.colin.app.activity.senior.SeniorPresenterImpl;
import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;

public class NotificationActivity extends AppActivity implements SeniorContract.SeniorView {

    private SeniorContract.SeniorPresenter mSeniorPresenter = null;

    @Override
    protected void onDestroy() {
        if (null != mSeniorPresenter) {
            mSeniorPresenter.destroy();
            mSeniorPresenter = null;
        }
        super.onDestroy();
    }

    @Override
    public void initPresenter() {
        DemoBean demoBean = getIntent().getExtras().getParcelable("clazz");
        mSeniorPresenter = new SeniorPresenterImpl(this, this, demoBean);
    }

    @Override
    public int initViewLayoutID() {
        return R.layout.activity_notification;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        mSeniorPresenter.setData();
    }

    public void notifyBasic(View view) {
        mSeniorPresenter.notifyBasic();
    }

    public void collapsedNotify(View view) {
        mSeniorPresenter.collapsedNotify();
    }

    public void notifyHeadsUp(View view) {
        mSeniorPresenter.notifyHeadsUp();
    }

    public void notifyBase(View view) {
        mSeniorPresenter.notifyBase();
    }

    public void notifyBigStyle(View view) {
        mSeniorPresenter.notifyBigStyle();
    }

    public void notifyLong(View view) {
        mSeniorPresenter.notifyLong();
    }
    public void notifyByRemoteViews(View view) {
        mSeniorPresenter.notifyByRemoteViews();
    }

    public void notifyClear(View view) {
        mSeniorPresenter.notifyClear();
    }

    public void notifyClearAll(View view) {
        mSeniorPresenter.notifyClearAll();
    }
}
